using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MachineGun : GunForEnemy
{
    protected override void Update()
    {
        mousePos = GameObject.FindWithTag("Player").transform.position;
        direction = (mousePos - new Vector2(transform.position.x, transform.position.y)).normalized;
        transform.right = direction;
        Shoot();
    }
}
